gdk: Use the system colormap, not the rgb colormap
authorBenjamin Otte <otte@redhat.com>
Tue, 13 Jul 2010 00:47:04 +0000 (02:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2010 14:42:49 +0000 (16:42 +0200)
RGB colormaps are on their way out.

gdk/gdkpixbuf-render.c

index 9e5bea8e5c9f41500c3572b0f3e0be905bc2f147..1bc63b25b0f1e56c396d75c6256085168546dd93 100644 (file)
@@ -150,7 +150,7 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
  * given drawables should use gdk_draw_pixbuf() and gdk_pixbuf_render_threshold_alpha().
  *
  * The pixmap that is created is created for the colormap returned
- * by gdk_rgb_get_colormap(). You normally will want to instead use
+ * by gdk_colormap_get_system(). You normally will want to instead use
  * the actual colormap for a widget, and use
  * gdk_pixbuf_render_pixmap_and_mask_for_colormap().
  *
@@ -164,7 +164,7 @@ gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf  *pixbuf,
                                   int         alpha_threshold)
 {
   gdk_pixbuf_render_pixmap_and_mask_for_colormap (pixbuf,
-                                                 gdk_rgb_get_colormap (),
+                                                 gdk_colormap_get_system (),
                                                  pixmap_return, mask_return,
                                                  alpha_threshold);
 }